package com.itheima.TestEmployee;

import java.util.Arrays;

public class TestFace {
    public static void main(String[] args) {
        int[] ints = {1,8};
        System.out.println(Arrays.toString(ints));

        System.out.println("-----");

        int a = 1;
        int b = 2;
        methodExchange2(a,b);
        System.out.println(a+",,,"+b);


    }

    public static void methodExchange(int[] arr){
        int temp = arr[0];
        arr[0] = arr[1];
        arr[1] = temp;
    }

    public static void methodExchange2(int a, int b){
        a = a ^ b;
        b = a ^ b;
    }
}
